package service.impl;

import dao.WorkDao;
import dao.impl.WorkDaoImpl;
import entity.Work;
import service.WorkService;

import java.util.ArrayList;

public class WorkServiceImpl implements WorkService {
    private WorkDao workDao =  new WorkDaoImpl();
    @Override
    public String insert(String idNumber, String work) throws Exception {
        return workDao.insert(idNumber, work);
    }

    @Override
    public ArrayList<Work> findHistory(String idNumber) throws Exception {
        return null;
    }

    @Override
    public ArrayList<Work> findWork(String idNumber) throws Exception {
        return workDao.findWork(idNumber);
    }
}